package com.future.lock.me.adapter;

import android.support.annotation.LayoutRes;
import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.future.lock.R;
import com.future.lock.home.entity.bean.GateWay;

import java.util.List;

/**
 * Created by jniu on 2017/11/21.
 */

public class GateWayAdapter extends BaseQuickAdapter<GateWay,BaseViewHolder> {

    public GateWayAdapter(@LayoutRes int layoutResId, @Nullable List<GateWay> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, GateWay item) {
        helper.setText(R.id.tv_name,item.mac).addOnClickListener(R.id.tv_delete);
    }
}
